#include <common.h>
#include <klib.h>

static int null_init(device_t* dev) {
    return 0;
}

static ssize_t null_read(device_t* dev, off_t offset, void* buf, size_t count) {
    return EOF;
}

static ssize_t null_write(device_t* dev,
                          off_t offset,
                          const void* buf,
                          size_t count) {
    return count;
}

devops_t null_ops = {
    .init = null_init,
    .read = null_read,
    .write = null_write,
};
